import request from '@/utils/request'

// 查询activityGoods列表
export function listActivityGoods(query) {
  return request({
    url: '/system/activityGoods/list',
    method: 'get',
    params: query
  })
}

// 查询activityGoods详细
export function getActivityGoods(id) {
  return request({
    url: '/system/activityGoods/' + id,
    method: 'get'
  })
}

// 新增activityGoods
export function addActivityGoods(data) {
  return request({
    url: '/system/activityGoods',
    method: 'post',
    data: data
  })
}

// 修改activityGoods
export function updateActivityGoods(data) {
  return request({
    url: '/system/activityGoods',
    method: 'put',
    data: data
  })
}

// 删除activityGoods
export function delActivityGoods(id) {
  return request({
    url: '/system/activityGoods/' + id,
    method: 'delete'
  })
}
